package com.four.mapper;

import com.four.entity.Admin;
import com.four.entity.Dept;
import com.four.entity.Scheduling;
import com.four.entity.Section;
import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SchedulingMapper {
    int deleteByPrimaryKey(Integer schedulingId);

    int insert(Scheduling record);

    int insertSelective(Scheduling record);

    Scheduling selectByPrimaryKey(Integer schedulingId);

    int updateByPrimaryKeySelective(Scheduling record);

    int updateByPrimaryKey(Scheduling record);

    //根据科室id查询所有属于该科室的医生的排班信息
    List<Scheduling> schedulingInfo(Integer sectionid);

    //根据科室id查询所有属于该科室的医生
    List<Admin> doctors(Integer sectionid);

    //根据医生id查询该医生未来7天的排班情况
    Scheduling selectByAdminIdAndDate(@Param("adminid")Integer adminid , @Param("scheDate") String scheDate);

   // 查询门诊部,内科医学部,外科医学部
    List<Dept> selectScheDept();

    //查询排班部门的科室
    List<Section> selectScheSection(Integer deptid);
}